<?php
    include_once 'config.php';

    if ($_COOKIE['LOG'] == false) {
        header('Location: index.php');
    }
?>
<body>
    <div data-role="page">
        <div data-role="header" data-theme="b" class="ui-overlay-shadow">
            <h1>
                 Löschen
            </h1>
        </div>
        <div data-role="content" data-theme="c">
            <h3 style="text-align:center">
                Hinweis:<br /><br />
                Der
                <?php
                    if ($_GET['form'] == 'pm') {
                        echo 'Projektleiter <font style="color:red">' . $_GET['vorname'] . ' ' . $_GET['name'] . '</font>';
                        $delete = '?pm_id=' . $_GET['pm_id'] . '&list=pm';
                    } else if ($_GET['form'] == 'km') {
                        echo 'Kaufmann <font style="color:red">' . $_GET['vorname'] . ' ' . $_GET['name'] . '</font>';
                        $delete = '?pm_id=' . $_GET['pm_id'] . '&list=km';
                    }
                ?>
                soll wirklich gelöscht werden?<br />
            </h3>
            <a data-role="button" data-theme="b" href="mainlist.php<?php echo $delete; ?>&delete=yes">Ja</a>
            <a data-role="button" href="javascript:history.back()" data-theme="c">Nein</a>
        </div>
    </div>
</body>
</html>